package 第七周.practice;
//Book2.java   Author:Lewis/loftus
//Respersents a book.Used as the parent of derived class to
//demonstrate inheritance and the use of the super reference.
public class Book2 {
    protected int pages;
    //Constuctor:Sets up the book with the specified number of
    //pages.
    public Book2(int numPages)
    {
        pages = numPages;
    }
    //Pages mutator.
    public void setPages(int numPages)
    {
        pages = numPages;
    }
    //Pages accessor.
    public int getPages()
    {
        return pages;
    }
}

